 <%@ page contentType="text/html;charset=UTF-8" language="java" %>

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
	<%
		String basePath = request.getScheme()
				+"://"
				+request.getServerName()
				+":"
				+request.getServerPort()
				+request.getContextPath()
				+"/";
	%>
	<base href="<%=basePath%>">
   <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>首页</title>
<%--    <script src="js/mui.min.js"></script>--%>
    <link href="phone/css/mui.css" rel="stylesheet"/>
</head>
<body>
	<header class="mui-bar mui-bar-nav">
		<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
		<h1 class="mui-title">首页</h1>
	</header>
	<nav class="mui-bar mui-bar-tab">
	  <a class="mui-tab-item mui-active" href="phone/index.jsp">

			<svg class="icon" aria-hidden="true">
			  <use xlink:href="#icon-zhuye"></use>
			</svg>
			<span class="mui-tab-label">首页</span>
		</a>

		<a class="mui-tab-item" href="addCartServlet?action=list" title="点击">
			<svg class="icon" aria-hidden="true">
			<use xlink:href="#icon-diancan"></use>
		</svg>
			<span class="mui-tab-label" >点餐</span>
		</a>
		<a class="mui-tab-item" href="phone/unpackage/mine.jsp">
			<!-- <span class="iconfont icon-mine_select"></span> -->
			<svg class="icon" aria-hidden="true">
			  <use xlink:href="#icon-mine_select"></use>
			</svg>
			<span class="mui-tab-label">我的</span>
		</a>
	</nav>
<style type="text/css">
	.icon {
	  width: 1em;
	  height: 1em;
	  vertical-align: -0.15em;
	  fill: currentColor;
	  overflow: hidden;
</style>
<div class="mui-content">

	<!-- 滚动图片开始 -->
	<div id="slider" class="mui-slider" >
	  <div class="mui-slider-group mui-slider-loop">
		<!-- 额外增加的一个节点(循环轮播：第一个节点是最后一张轮播) -->
		<div class="mui-slider-item mui-slider-item-duplicate">
		  <a href="#">
			<!-- <img src="#"> -->
		  </a>
		</div>
		<!-- 第一张 -->
		<div class="mui-slider-item">
		  <a href="#">
			<img src="phone/pictures/Cover_1.jpg">
		  </a>
		</div>
		<!-- 第二张 -->
		<div class="mui-slider-item">
		  <a href="#">
			<img src="phone/pictures/Cover_2.jpg">
		  </a>
		</div>
		<!-- 第三张 -->
		<div class="mui-slider-item">
		  <a href="#">
			<img src="phone/pictures/Cover_3.jpg">
		  </a>
		</div>
		<!-- 第四张 -->
		<div class="mui-slider-item">
		  <a href="#">
			<img src="phone/pictures/Cover.jpg">
		  </a>
		</div>
		<!-- 额外增加的一个节点(循环轮播：最后一个节点是第一张轮播) -->
		<div class="mui-slider-item mui-slider-item-duplicate">
		  <a href="#">
			<img src="phone/pictures/Cover_1.jpg">
		  </a>
		</div>
	  </div>
	  <div class="mui-slider-indicator">
		<div class="mui-indicator mui-active"></div>
		<div class="mui-indicator"></div>
		<div class="mui-indicator"></div>
		<div class="mui-indicator"></div>
	  </div>
	</div>

 <button type="button" class="mui-btn" style="width: -webkit-fill-available;height: 10rem;"><a href="addCartServlet?action=list">手机点餐</a></button>
 <!-- 栅格开始 -->
 <div class="mui-row">
 	<div class="mui-col-sm-6 mui-col-xs-6">
		<button type="button" class="mui-btn" style="width:-webkit-fill-available;height: 6.25rem"><a href="phone/unpackage/phone_table.jsp">订桌</a></button>
	</div>
 	<div class="mui-col-sm-6 mui-col-xs-6">
		<button type="button" class="mui-btn" style="width:-webkit-fill-available;height: 6.25rem"><a href="phone/unpackage/phone_coupon.jsp">优惠卷</a></button>
	</div>
 </div>
 <!-- 栅格结束 -->
</div>
		<script src="phone/js/mui.js"></script>
		<script src="phone/js/iconfont.js"></script>
		<script type="text/javascript">
			mui.init({
				swipeBack: true //启用右滑关闭功能
			});
			//获得slider插件对象
			var gallery = mui('.mui-slider');
			gallery.slider({
			  interval:800//自动轮播周期，若为0则不自动播放，默认为0；
			});
			</script>
</body>
</html>